package com.okq.entity;

import com.okq.entity.base.BaseEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 描述 : 数据字典表实体类
 * 作者 : zdl
 * 日期 : 2017/6/27 17:03
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "tb_dict")
public class Dict extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -4117237299029742081L;
    /**
     * 名称
     */
    @Column(name = "name", length = 40)
    private String name;
    /**
     * 值
     */
    @Column(name = "value")
    private Integer value;
    /**
     * 类型
     */
    @Column(name = "type", length = 20)
    private String type;
    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;
    /**
     * 创建人Id
     */
    @Column(name = "createUserId", length = 40)
    private String createUserId;
    /**
     * 创建人姓名
     */
    @Column(name = "createUserName", length = 40)
    private String createUserName;
    /**
     * 创建时间
     */
    @Column(name = "createTime")
    private Timestamp createTime;
    /**
     * 修改人Id
     */
    @Column(name = "updateUserId", length = 40)
    private String updateUserId;
    /**
     * 修改人姓名
     */
    @Column(name = "updateUserName", length = 40)
    private String updateUserName;
    /**
     * 修改时间
     */
    @Column(name = "updateTime")
    private Timestamp updateTime;
    /**
     * 是否删除0：未删除1：已删除
     */
    @Column(name = "isDelete")
    private Integer isDelete;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
}
